var Adv_skd=require("./Adv_skd2")

cc.Class({
  extends: cc.Component,
  properties: {},
  initBy: function () {
    Adv_skd.default.instance.hideAllAdv();
     Adv_skd.default.instance.showInterstitialAd();
        Adv_skd.default.instance.showGridAdTop();
        Adv_skd.default.instance.showBannerAd();
  },
  onCloseUI: function () {
    Adv_skd.default.instance.hideAllAdv();

    cc.popupManager.removePopup(this);
  },
  onClickBackToMain: function () {
    Adv_skd.default.instance.hideAllAdv();

    cc.popupManager.removeAllPopups();
    cc.pvz.runtimeData.removeData();
    cc.director.loadScene("mainUI");
  }
});